<?php $products = $form->getObject() ?>
<h1><?php echo $products->isNew() ? __("New ") : __("Edit ") ?><?php echo __("Products") ?></h1>
<?php use_javascript('/sfFormExtraPlugin/js/double_list.js') ?>
<form action="<?php echo url_for('products/update'.(!$products->isNew() ? '?products_id='.$products->getProductsId() : '')) ?>" onsubmit="double_list_submit(this, 'double_list_select'); return true;" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
  <table>
    <tfoot>
      <tr>
        <td colspan="2">
          &nbsp;<a href="<?php echo url_for('products/index') ?>"><?php echo __("Cancel") ?></a>
          <?php if (!$products->isNew()): ?>
            &nbsp;<?php echo link_to('Delete', 'products/delete?products_id='.$products->getProductsId(), array('post' => true, 'confirm' => 'Are you sure?')) ?>
          <?php endif; ?>
          <input type="submit" value="<?php echo __("Save") ?>" />
        </td>
      </tr>
    </tfoot>
    <tbody>
      <?php echo $form->renderGlobalErrors() ?>
      <tr>
        <th><?php echo $form['products_quantity']->renderLabel() ?></th>
        <td>
          <?php echo $form['products_quantity']->renderError() ?>
          <?php echo $form['products_quantity'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['products_model']->renderLabel() ?></th>
        <td>
          <?php echo $form['products_model']->renderError() ?>
          <?php echo $form['products_model'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['products_image']->renderLabel() ?></th>
        <td>
          <?php echo $form['products_image']->renderError() ?>
          <?php echo $form['products_image'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['products_price']->renderLabel() ?></th>
        <td>
          <?php echo $form['products_price']->renderError() ?>
          <?php echo $form['products_price'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['products_date_available']->renderLabel() ?></th>
        <td>
          <?php echo $form['products_date_available']->renderError() ?>
          <?php echo $form['products_date_available'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['products_weight']->renderLabel() ?></th>
        <td>
          <?php echo $form['products_weight']->renderError() ?>
          <?php echo $form['products_weight'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['products_status']->renderLabel() ?></th>
        <td>
          <?php echo $form['products_status']->renderError() ?>
          <?php echo $form['products_status'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['products_tax_class_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['products_tax_class_id']->renderError() ?>
          <?php echo $form['products_tax_class_id'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['manufacturers_id']->renderLabel() ?></th>
        <td>
          <?php echo $form['manufacturers_id']->renderError() ?>
          <?php echo $form['manufacturers_id'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['products_ordered']->renderLabel() ?></th>
        <td>
          <?php echo $form['products_ordered']->renderError() ?>
          <?php echo $form['products_ordered'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['products_to_categories_list']->renderLabel() ?></th>
        <td>
          <?php echo $form['products_to_categories_list']->renderError() ?>
          <?php echo $form['products_to_categories_list'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['en']->renderLabel() ?></th>
        <td>
          <?php echo $form['en']->renderError() ?>
          <?php echo $form['en'] ?>

        <?php echo $form['products_id'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['de']->renderLabel() ?></th>
        <td>
          <?php echo $form['de']->renderError() ?>
          <?php echo $form['de'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['es']->renderLabel() ?></th>
        <td>
          <?php echo $form['es']->renderError() ?>
          <?php echo $form['es'] ?>
        </td>
      </tr>
      <tr>
        <th><?php echo $form['fr']->renderLabel() ?></th>
        <td>
          <?php echo $form['fr']->renderError() ?>
          <?php echo $form['fr'] ?>
        </td>
      </tr>
    </tbody>
  </table>
</form>
